package com.ztesoft.huangfu.learning.springboot.springbootaop.service;

import com.ztesoft.huangfu.learning.springboot.springbootaop.annotation.StudentAccess;
import com.ztesoft.huangfu.learning.springboot.springbootaop.annotation.UserAccess;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * Author: huangfu.daohui
 * Date: 2018/6/29
 * Time: 9:06
 * Version: 1.0
 * Description:
 **/
@Service
public class UserService {
    @UserAccess(desc = "userMethod")
    public String userMethod(String id) {
        System.out.println("id:" + id);
        return id;
    }

    @StudentAccess(desc = "studentMethod")
    public String studentMethod(String name) {
        System.out.println("name:" + name);
        return name;
    }
}
